package com.zygh.sendmail.module.controller;

import com.zygh.sendmail.module.service.JavaMailService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class SendMailController {
    @Resource
    private JavaMailService javaMail;

    @GetMapping("mail")
    public void mail() {
        javaMail.mail();
    }

    @GetMapping("patrol")
    public Object patrol() {
        return javaMail.patrol();
    }

    @GetMapping("testHSSF")
    public void testHSSF() throws Exception {
        javaMail.testHSSF();
    }
}
